import { createApp } from 'vue'
import '@/assets/styles/index.scss'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import App from './App.vue'
import gloalComponent from '@/plugins/index'
import pinia from './stores'
import i18n from './locales/index'
import { registerRouter } from '@/router/index'
import isHasButton from './directive/has'

const app = createApp(App)

app.use(gloalComponent)

app.use(pinia)

app.use(i18n)

await registerRouter(app)

isHasButton(app)

app.mount('#app')
